package com.czx.common.security;


import com.czx.vo.UserToken;

public class UserTokenThreadLocal {

    private static ThreadLocal<UserToken> userTokenThreadLocal = new ThreadLocal<>();

    public static void set(UserToken userToken) {
        userTokenThreadLocal.set(userToken);
    }

    public static UserToken get() {
        return userTokenThreadLocal.get();
    }

    public static void remove() {
        userTokenThreadLocal.remove();
    }
}
